package interfaces;

/**
   This program tests the DataSet class.
*/
public class DataSetTester
{
   public static void main(String[] args)
   {
      
      /*DataSet treeData = new DataSet();

      treeData.add(new Tree("poplar", 70.0, 5));
      treeData.add(new Tree("pine tree", 100.0, 10));
      treeData.add(new Tree("dwarf lemon tree", 3.5, 4 ));

      System.out.println("Average tree height: " 
            + treeData.getAverage());
      System.out.println("Expected: 57.83333");
      
      Measurable max = treeData.getMaximum();
      System.out.println("Highest tree: " 
         + max.getMeasure());
      System.out.println("Expected: 100.0");

      DataSet coinData = new DataSet();

      coinData.add(new Coin(0.25, "quarter"));
      coinData.add(new Coin(0.1, "dime"));
      coinData.add(new Coin(0.05, "nickel"));

      System.out.println("Average coin value: " 
            + coinData.getAverage());
      System.out.println("Expected: 0.133");            
      max = coinData.getMaximum();
      System.out.println("Highest coin value: " 
            + max.getMeasure());
      System.out.println("Expected: 0.25");  */
      Measurable max;

      
      DataSet people = new DataSet();
      people.add(new Person("Loc", 2.0));
      people.add(new Person("Loc1", 3.0));
      
      System.out.println("Average GPA: " + people.getAverage());
      
      max = people.getMaximum();
      System.out.println("Highest GPA: " + max.getMeasure());
      max = people.getMinimum();
      System.out.println(max.getMeasure());
      
      
   }
}
